<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Clause: chatopera::bot::clause::Bot类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Clause
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Chatopera Language Understanding Service.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="inherits.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacechatopera.html">chatopera</a></li><li class="navelem"><b>bot</b></li><li class="navelem"><b>clause</b></li><li class="navelem"><a class="el" href="classchatopera_1_1bot_1_1clause_1_1Bot.html">Bot</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classchatopera_1_1bot_1_1clause_1_1Bot-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">chatopera::bot::clause::Bot类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ae5d85b04c38e6814746c37a81846dd76"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#ae5d85b04c38e6814746c37a81846dd76">init</a> (const string &amp;chatbotID, const string &amp;branch, const string &amp;buildver)</td></tr>
<tr class="separator:ae5d85b04c38e6814746c37a81846dd76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02765213965c753fda4f14be9ae9f3aa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a02765213965c753fda4f14be9ae9f3aa"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>tokenize</b> (const string &amp;query, std::vector&lt; pair&lt; string, string &gt; &gt; &amp;tokens)</td></tr>
<tr class="separator:a02765213965c753fda4f14be9ae9f3aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab29f978285789e0ed70bea1f8c3f68d8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#ab29f978285789e0ed70bea1f8c3f68d8">setSessionEntitiesByIntentName</a> (const string &amp;intentName, intent::TChatSession &amp;<a class="el" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#a862e742559aa4e6aa5efb32920120fd2">session</a>)</td></tr>
<tr class="separator:ab29f978285789e0ed70bea1f8c3f68d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a862e742559aa4e6aa5efb32920120fd2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#a862e742559aa4e6aa5efb32920120fd2">session</a> (ChatSession &amp;session)</td></tr>
<tr class="separator:a862e742559aa4e6aa5efb32920120fd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae14a676de0f22f567b016da72c1a5bbb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#ae14a676de0f22f567b016da72c1a5bbb">classify</a> (const std::vector&lt; pair&lt; string, string &gt; &gt; &amp;query, const string &amp;intentName)</td></tr>
<tr class="separator:ae14a676de0f22f567b016da72c1a5bbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72083ff4fc8199e0f4690622a8e493bf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#a72083ff4fc8199e0f4690622a8e493bf">chat</a> (const ChatMessage &amp;payload, const string &amp;query, const vector&lt; sysdicts::Entity &gt; &amp;builtins, const std::vector&lt; <a class="el" href="structchatopera_1_1bot_1_1clause_1_1PatternDictMatch.html">PatternDictMatch</a> &gt; &amp;patternDictMatches, intent::TChatSession &amp;<a class="el" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#a862e742559aa4e6aa5efb32920120fd2">session</a>, ChatMessage &amp;reply)</td></tr>
<tr class="separator:a72083ff4fc8199e0f4690622a8e493bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6abc44f970a46ff153ec362a57645876"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#a6abc44f970a46ff153ec362a57645876">getBuildver</a> ()</td></tr>
<tr class="separator:a6abc44f970a46ff153ec362a57645876"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaf0f1a187326e8dd710312a5e355b63"><td class="memItemLeft" align="right" valign="top">vector&lt; string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#acaf0f1a187326e8dd710312a5e355b63">getReferredSysdicts</a> ()</td></tr>
<tr class="separator:acaf0f1a187326e8dd710312a5e355b63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44fd6620f9e66ecb84e828f28a4eead0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#a44fd6620f9e66ecb84e828f28a4eead0">hasReferredSysdict</a> (const string &amp;dictname)</td></tr>
<tr class="separator:a44fd6620f9e66ecb84e828f28a4eead0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26fa057078ab957aeba9e7f2e9007e54"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#a26fa057078ab957aeba9e7f2e9007e54">patchSysdictsRequestEntities</a> (sysdicts::Data &amp;request)</td></tr>
<tr class="separator:a26fa057078ab957aeba9e7f2e9007e54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a317d2d2bb5ea473c93d47d096472fc40"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a317d2d2bb5ea473c93d47d096472fc40"></a>
std::vector&lt; pair&lt; string, intent::TDict &gt; &gt; *&#160;</td><td class="memItemRight" valign="bottom"><b>getPatternDicts</b> () const </td></tr>
<tr class="separator:a317d2d2bb5ea473c93d47d096472fc40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a958baf70bf5e5b0154b1e05921084bd1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#a958baf70bf5e5b0154b1e05921084bd1">hasRelatedPatternDict</a> (const string &amp;dictname, const string &amp;intentName)</td></tr>
<tr class="separator:a958baf70bf5e5b0154b1e05921084bd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="a72083ff4fc8199e0f4690622a8e493bf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool chatopera::bot::clause::Bot::chat </td>
          <td>(</td>
          <td class="paramtype">const ChatMessage &amp;&#160;</td>
          <td class="paramname"><em>payload</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>query</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const vector&lt; sysdicts::Entity &gt; &amp;&#160;</td>
          <td class="paramname"><em>builtins</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="structchatopera_1_1bot_1_1clause_1_1PatternDictMatch.html">PatternDictMatch</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>patternDictMatches</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">intent::TChatSession &amp;&#160;</td>
          <td class="paramname"><em>session</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ChatMessage &amp;&#160;</td>
          <td class="paramname"><em>reply</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>对话接口 </p><dl class="section return"><dt>返回</dt><dd>bool 成功设置textMessage或resolve情况下，返回true </dd></dl>
<p>Step 1: 处理槽位</p>
<p>查找其它槽位信息</p>
<p>进行NER识别 未识别到的槽位并且为必填项: 设置回复为追问。</p>
<p>Step 2: 处理回复</p>

<p><div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="classchatopera_1_1bot_1_1clause_1_1Bot_a72083ff4fc8199e0f4690622a8e493bf_cgraph.png" border="0" usemap="#classchatopera_1_1bot_1_1clause_1_1Bot_a72083ff4fc8199e0f4690622a8e493bf_cgraph" alt=""/></div>
<map name="classchatopera_1_1bot_1_1clause_1_1Bot_a72083ff4fc8199e0f4690622a8e493bf_cgraph" id="classchatopera_1_1bot_1_1clause_1_1Bot_a72083ff4fc8199e0f4690622a8e493bf_cgraph">
<area shape="rect" id="node2" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#a862e742559aa4e6aa5efb32920120fd2" title="chatopera::bot::clause\l::Bot::session" alt="" coords="221,5,387,47"/>
<area shape="rect" id="node3" href="classchatopera_1_1bot_1_1crfsuite_1_1Tagger.html#a0808b117ae2ce996d4eefd218f21f1b5" title="chatopera::bot::crfsuite\l::Tagger::tag" alt="" coords="219,71,389,112"/>
</map>
</div>
</p>

<p><div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="classchatopera_1_1bot_1_1clause_1_1Bot_a72083ff4fc8199e0f4690622a8e493bf_icgraph.png" border="0" usemap="#classchatopera_1_1bot_1_1clause_1_1Bot_a72083ff4fc8199e0f4690622a8e493bf_icgraph" alt=""/></div>
<map name="classchatopera_1_1bot_1_1clause_1_1Bot_a72083ff4fc8199e0f4690622a8e493bf_icgraph" id="classchatopera_1_1bot_1_1clause_1_1Bot_a72083ff4fc8199e0f4690622a8e493bf_icgraph">
<area shape="rect" id="node2" href="classchatopera_1_1bot_1_1clause_1_1ServingHandler.html#aca48387fd1fa595d22c84916fe6a289d" title="chatopera::bot::clause\l::ServingHandler::chat" alt="" coords="219,5,384,47"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ae14a676de0f22f567b016da72c1a5bbb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool chatopera::bot::clause::Bot::classify </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; pair&lt; string, string &gt; &gt; &amp;&#160;</td>
          <td class="paramname"><em>query</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>intentName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>意图识别 从xapian数据库中找回候选集并进行比较，得到最匹配的作为意图 </p>

<p><div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="classchatopera_1_1bot_1_1clause_1_1Bot_ae14a676de0f22f567b016da72c1a5bbb_cgraph.png" border="0" usemap="#classchatopera_1_1bot_1_1clause_1_1Bot_ae14a676de0f22f567b016da72c1a5bbb_cgraph" alt=""/></div>
<map name="classchatopera_1_1bot_1_1clause_1_1Bot_ae14a676de0f22f567b016da72c1a5bbb_cgraph" id="classchatopera_1_1bot_1_1clause_1_1Bot_ae14a676de0f22f567b016da72c1a5bbb_cgraph">
<area shape="rect" id="node2" href="classchatopera_1_1bot_1_1distance_1_1Similarity.html#afb947df36791d54700d518bb82acad55" title="chatopera::bot::distance\l::Similarity::sort" alt="" coords="219,5,397,47"/>
<area shape="rect" id="node3" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#a862e742559aa4e6aa5efb32920120fd2" title="chatopera::bot::clause\l::Bot::session" alt="" coords="225,71,391,112"/>
</map>
</div>
</p>

<p><div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="classchatopera_1_1bot_1_1clause_1_1Bot_ae14a676de0f22f567b016da72c1a5bbb_icgraph.png" border="0" usemap="#classchatopera_1_1bot_1_1clause_1_1Bot_ae14a676de0f22f567b016da72c1a5bbb_icgraph" alt=""/></div>
<map name="classchatopera_1_1bot_1_1clause_1_1Bot_ae14a676de0f22f567b016da72c1a5bbb_icgraph" id="classchatopera_1_1bot_1_1clause_1_1Bot_ae14a676de0f22f567b016da72c1a5bbb_icgraph">
<area shape="rect" id="node2" href="classchatopera_1_1bot_1_1clause_1_1ServingHandler.html#aca48387fd1fa595d22c84916fe6a289d" title="chatopera::bot::clause\l::ServingHandler::chat" alt="" coords="219,5,384,47"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6abc44f970a46ff153ec362a57645876"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string chatopera::bot::clause::Bot::getBuildver </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获得构建版本 </p>

</div>
</div>
<a class="anchor" id="acaf0f1a187326e8dd710312a5e355b63"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; string &gt; chatopera::bot::clause::Bot::getReferredSysdicts </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获得引用的系统词典列表 </p>

<p><div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="classchatopera_1_1bot_1_1clause_1_1Bot_acaf0f1a187326e8dd710312a5e355b63_icgraph.png" border="0" usemap="#classchatopera_1_1bot_1_1clause_1_1Bot_acaf0f1a187326e8dd710312a5e355b63_icgraph" alt=""/></div>
<map name="classchatopera_1_1bot_1_1clause_1_1Bot_acaf0f1a187326e8dd710312a5e355b63_icgraph" id="classchatopera_1_1bot_1_1clause_1_1Bot_acaf0f1a187326e8dd710312a5e355b63_icgraph">
<area shape="rect" id="node2" href="classchatopera_1_1bot_1_1clause_1_1ServingHandler.html#aca48387fd1fa595d22c84916fe6a289d" title="chatopera::bot::clause\l::ServingHandler::chat" alt="" coords="240,5,405,47"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a44fd6620f9e66ecb84e828f28a4eead0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool chatopera::bot::clause::Bot::hasReferredSysdict </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>dictname</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否引用了系统词典 </p>

<p><div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="classchatopera_1_1bot_1_1clause_1_1Bot_a44fd6620f9e66ecb84e828f28a4eead0_icgraph.png" border="0" usemap="#classchatopera_1_1bot_1_1clause_1_1Bot_a44fd6620f9e66ecb84e828f28a4eead0_icgraph" alt=""/></div>
<map name="classchatopera_1_1bot_1_1clause_1_1Bot_a44fd6620f9e66ecb84e828f28a4eead0_icgraph" id="classchatopera_1_1bot_1_1clause_1_1Bot_a44fd6620f9e66ecb84e828f28a4eead0_icgraph">
<area shape="rect" id="node2" href="classchatopera_1_1bot_1_1clause_1_1ServingHandler.html#aca48387fd1fa595d22c84916fe6a289d" title="chatopera::bot::clause\l::ServingHandler::chat" alt="" coords="236,5,401,47"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a958baf70bf5e5b0154b1e05921084bd1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool chatopera::bot::clause::Bot::hasRelatedPatternDict </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>dictname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>intentName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否使用了正则表达式词典 </p>

<p><div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="classchatopera_1_1bot_1_1clause_1_1Bot_a958baf70bf5e5b0154b1e05921084bd1_icgraph.png" border="0" usemap="#classchatopera_1_1bot_1_1clause_1_1Bot_a958baf70bf5e5b0154b1e05921084bd1_icgraph" alt=""/></div>
<map name="classchatopera_1_1bot_1_1clause_1_1Bot_a958baf70bf5e5b0154b1e05921084bd1_icgraph" id="classchatopera_1_1bot_1_1clause_1_1Bot_a958baf70bf5e5b0154b1e05921084bd1_icgraph">
<area shape="rect" id="node2" href="classchatopera_1_1bot_1_1clause_1_1ServingHandler.html#aca48387fd1fa595d22c84916fe6a289d" title="chatopera::bot::clause\l::ServingHandler::chat" alt="" coords="255,5,420,47"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ae5d85b04c38e6814746c37a81846dd76"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool chatopera::bot::clause::Bot::init </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>chatbotID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>branch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>buildver</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>初始化 </p>

<p><div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="classchatopera_1_1bot_1_1clause_1_1Bot_ae5d85b04c38e6814746c37a81846dd76_cgraph.png" border="0" usemap="#classchatopera_1_1bot_1_1clause_1_1Bot_ae5d85b04c38e6814746c37a81846dd76_cgraph" alt=""/></div>
<map name="classchatopera_1_1bot_1_1clause_1_1Bot_ae5d85b04c38e6814746c37a81846dd76_cgraph" id="classchatopera_1_1bot_1_1clause_1_1Bot_ae5d85b04c38e6814746c37a81846dd76_cgraph">
<area shape="rect" id="node2" href="classchatopera_1_1bot_1_1crfsuite_1_1Tagger.html#a2ceb2bff257971168111e11eaaccecec" title="chatopera::bot::crfsuite\l::Tagger::open" alt="" coords="219,5,389,47"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a26fa057078ab957aeba9e7f2e9007e54"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool chatopera::bot::clause::Bot::patchSysdictsRequestEntities </td>
          <td>(</td>
          <td class="paramtype">sysdicts::Data &amp;&#160;</td>
          <td class="paramname"><em>request</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>请求系统词典前增加被引用的列表信息 </p>

<p><div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="classchatopera_1_1bot_1_1clause_1_1Bot_a26fa057078ab957aeba9e7f2e9007e54_icgraph.png" border="0" usemap="#classchatopera_1_1bot_1_1clause_1_1Bot_a26fa057078ab957aeba9e7f2e9007e54_icgraph" alt=""/></div>
<map name="classchatopera_1_1bot_1_1clause_1_1Bot_a26fa057078ab957aeba9e7f2e9007e54_icgraph" id="classchatopera_1_1bot_1_1clause_1_1Bot_a26fa057078ab957aeba9e7f2e9007e54_icgraph">
<area shape="rect" id="node2" href="classchatopera_1_1bot_1_1clause_1_1ServingHandler.html#aca48387fd1fa595d22c84916fe6a289d" title="chatopera::bot::clause\l::ServingHandler::chat" alt="" coords="300,5,465,47"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a862e742559aa4e6aa5efb32920120fd2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool chatopera::bot::clause::Bot::session </td>
          <td>(</td>
          <td class="paramtype">ChatSession &amp;&#160;</td>
          <td class="paramname"><em>session</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>会话周期 </p>

<p><div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="classchatopera_1_1bot_1_1clause_1_1Bot_a862e742559aa4e6aa5efb32920120fd2_icgraph.png" border="0" usemap="#classchatopera_1_1bot_1_1clause_1_1Bot_a862e742559aa4e6aa5efb32920120fd2_icgraph" alt=""/></div>
<map name="classchatopera_1_1bot_1_1clause_1_1Bot_a862e742559aa4e6aa5efb32920120fd2_icgraph" id="classchatopera_1_1bot_1_1clause_1_1Bot_a862e742559aa4e6aa5efb32920120fd2_icgraph">
<area shape="rect" id="node2" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#ae14a676de0f22f567b016da72c1a5bbb" title="chatopera::bot::clause\l::Bot::classify" alt="" coords="219,5,384,47"/>
<area shape="rect" id="node4" href="classchatopera_1_1bot_1_1clause_1_1Bot.html#a72083ff4fc8199e0f4690622a8e493bf" title="chatopera::bot::clause\l::Bot::chat" alt="" coords="219,71,384,112"/>
<area shape="rect" id="node3" href="classchatopera_1_1bot_1_1clause_1_1ServingHandler.html#aca48387fd1fa595d22c84916fe6a289d" title="chatopera::bot::clause\l::ServingHandler::chat" alt="" coords="432,39,597,80"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ab29f978285789e0ed70bea1f8c3f68d8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool chatopera::bot::clause::Bot::setSessionEntitiesByIntentName </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>intentName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">intent::TChatSession &amp;&#160;</td>
          <td class="paramname"><em>session</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获得意图后，将槽位信息添加到session </p>

<p><div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="classchatopera_1_1bot_1_1clause_1_1Bot_ab29f978285789e0ed70bea1f8c3f68d8_icgraph.png" border="0" usemap="#classchatopera_1_1bot_1_1clause_1_1Bot_ab29f978285789e0ed70bea1f8c3f68d8_icgraph" alt=""/></div>
<map name="classchatopera_1_1bot_1_1clause_1_1Bot_ab29f978285789e0ed70bea1f8c3f68d8_icgraph" id="classchatopera_1_1bot_1_1clause_1_1Bot_ab29f978285789e0ed70bea1f8c3f68d8_icgraph">
<area shape="rect" id="node2" href="classchatopera_1_1bot_1_1clause_1_1ServingHandler.html#aca48387fd1fa595d22c84916fe6a289d" title="chatopera::bot::clause\l::ServingHandler::chat" alt="" coords="323,5,488,47"/>
</map>
</div>
</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/clause/src/<a class="el" href="bot_8h_source.html">bot.h</a></li>
<li>src/clause/src/bot.cpp</li>
</ul>
</div><!-- contents -->
<address class="footer">
    <small>
        &nbsp; Copyright (c) (2019-2020) &nbsp;<a href="https://www.chatopera.com">
            北京华夏春松科技有限公司
        </a>. All Rights Reserved
        &nbsp;
    </small>
</address>